package com.kingsoft.dc.khaos.module.spark.metadata.preprocess.transform

import org.json4s.JObject

/**
 * Created by wuxiang on 2022/10/13.
 */
case class BasicInfo(custom: JObject,
                     extract_fields: List[BasicOptionInfo],
                     advanced_options: AdvancedOptiones = null)

case class BasicOptionInfo(field: String = "",
                           data_type: String = "",
                           length: Option[String]
                          )

case class AdvancedOptiones(cache_option: BasicCacheInfo,
                          partition: BasicpartitionInfo)

case class BasicpartitionInfo(on_off: Boolean = false,
                              nums: String)

case class BasicCacheInfo(on_off: Boolean = false,
                          option: String)